import {
	defineConfig
} from 'vite';
import uni from '@dcloudio/vite-plugin-uni';
import {
	resolve
} from 'path';

export default defineConfig({
	plugins: [uni()],
	base:'/assets/',
	resolve: {
		alias: {
			'@': resolve(__dirname, '/assets/'),
			'@assets': resolve(__dirname, './assets'),
			'@api': resolve(__dirname, './assets/api'),
			'@components': resolve(__dirname, './assets/components'),
			'@image': resolve(__dirname, './assets/image'),
			'@styles': resolve(__dirname, './assets/styles'),
			'@utils': resolve(__dirname, './assets/utils'),
		},
	},
});